package com.SunSoft.PhoneRemoteControl;

import android.app.ProgressDialog;
import android.os.Handler;
import android.os.Message;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import java.util.Timer;

final class do extends Handler
{
  public final void handleMessage(Message paramMessage)
  {
    super.handleMessage(paramMessage);
    switch (paramMessage.what)
    {
    case 1:
    case 6:
    case 7:
    case 8:
    case 9:
    case 10:
    case 11:
    default:
      return;
    case 12:
      Show_Control.a(this.a);
      return;
    case 3:
      this.a.aF.setText(Show_Control.a(this.a.n, 0));
      this.a.aE.setText(this.a.i + "," + this.a.getString(2131099897) + this.a.n.length());
      this.a.D = false;
      return;
    case 4:
      this.a.aF.setText(Show_Control.a(this.a.Q[this.a.g], 0));
      this.a.aE.setText(this.a.i);
      this.a.D = false;
      return;
    case 2:
      Show_Control.a("Test", "录音开始");
      Show_Control.a(this.a, ProgressDialog.show(this.a, this.a.an, this.a.getString(2131099754)));
      if (MainControl.f)
        new Timer().schedule(new ep(this.a), 5000L);
      while (true)
      {
        this.a.C = true;
        if (!(MainControl.f))
          break;
        new Timer().schedule(new eo(this.a), 200L);
        paramMessage = "FC" + Show_Control.a(this.a.g);
        Show_Control.a(this.a, paramMessage, 1);
        return;
        new Timer().schedule(new ep(this.a), 5000L);
      }
      this.a.C = true;
      Show_Control.a(this.a, g.a());
      Show_Control.a(Show_Control.b(this.a), Show_Control.c(this.a));
      return;
    case 5:
    }
    Toast.makeText(this.a, this.a.x, 0).show();
  }
}